package com.aizuda.boot.modules.business.contract.mapper;

import com.aizuda.boot.modules.business.contract.entity.ContractModuleEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author sangyirong
 * @ClassName ContractModuleMapper
 * @Version 1.0
 * @Date 2025/5/29 18:12
 */
@Mapper
public interface ContractModuleMapper extends BaseMapper<ContractModuleEntity> {
    //查询所有可用的模块
    @Select("SELECT * FROM contract_module WHERE is_enabled = 1 ORDER BY module_order")
    List<ContractModuleEntity> selectEnabledModules();
}